returns true if Jmol can be found in the classpath, otherwise false.

@return true/false depending if Jmol can be found
337677
public static boolean jmolInClassPath(){
		try {
			Class.forName(viewer);
		} catch (ClassNotFoundException e){
			e.printStackTrace();
			return false;
		}
		return true;
	}
6262
public boolean hasModuleResourcesWithUndefinedSite() {

        if (getSite() == null) {
            for (String modRes : getResources()) {
                if (!CmsStringUtil.isPrefixPath("/system/", modRes)
                    && !OpenCms.getSiteManager().startsWithShared(modRes)) {
                    return true;
                }

            }
        }
        return false;
    }
1009075
private boolean isRoleEditable() {

        CmsObject cms = getCms();
        String path = getParamResource();
        return CmsWorkplace.canEditPermissionsForRoles(cms, path);

    }
499900
public boolean isNullOnSomePath() {
        int baseKind = getBaseKind();
        if (NCP_EXTRA_BRANCH) {
            // Note: NCP_EXTRA_BRANCH is an experimental feature
            // to see how many false warnings we get when we allow
            // two branches between an explicit null and a
            // a dereference.
            return baseKind == NSP || baseKind == NCP2;
        } else {
            return baseKind == NSP;
        }
    }
1199855
@SuppressWarnings("deprecation")
    private boolean hasOldTaglet(List<String> tagletNames, List<File> tagletPaths) throws ToolException {
        if (!fileManager.hasLocation(TAGLET_PATH)) {
            try {
                ((StandardJavaFileManager) fileManager).setLocation(TAGLET_PATH, tagletPaths);
            } catch (IOException ioe) {
                String text = messager.getText("main.doclet_could_not_set_location", tagletPaths);
                throw new ToolException(CMDERR, text, ioe);
            }
        }
        ClassLoader cl = fileManager.getClassLoader(TAGLET_PATH);
        if (cl == null) {
            // no classloader found!
            String text = messager.getText("main.doclet_no_classloader_found", tagletNames.get(0));
            throw new ToolException(CMDERR, text);
        }
        for (String tagletName : tagletNames) {
            try {
                Class<?> klass = cl.loadClass(tagletName);
                if (com.sun.tools.doclets.Taglet.class.isAssignableFrom(klass)) {
                    return true;
                }
            } catch (ClassNotFoundException cnfe) {
                String text = messager.getText("main.doclet_class_not_found", tagletName);
                throw new ToolException(CMDERR, text, cnfe);
            }
        }
        return false;
    }
447728
protected boolean isPossibleExtension(JvmFeature feature) {
		if (!(feature instanceof JvmOperation)) {
			return false;
		}
		List<JvmFormalParameter> parameters = ((JvmExecutable) feature).getParameters();
		if (parameters.isEmpty()) {
			return false;
		}
		return true;
	}
473592
public boolean compileFromDDL(final String jarOutputPath, final String... ddlFilePaths) {
        if (ddlFilePaths.length == 0) {
            compilerLog.error("At least one DDL file is required.");
            return false;
        }
        List<VoltCompilerReader> ddlReaderList;
        try {
            ddlReaderList = DDLPathsToReaderList(ddlFilePaths);
        }
        catch (VoltCompilerException e) {
            compilerLog.error("Unable to open DDL file.", e);
            return false;
        }
        return compileInternalToFile(jarOutputPath, null, null, ddlReaderList, null);
    }
960157
public static boolean contains(String className) {
    if (className.startsWith("javax.")) {
      return !isBundledInJre(className) || WHITELIST.contains(className);
    } else if (className.startsWith("java.")
        || className.startsWith("sun.util.")
        || className.startsWith("org.xml.sax.")
        || className.startsWith("org.w3c.dom.")
        || className.startsWith("org.omg.")
        || className.startsWith("org.ietf.jgss.")
        // com.sun and com.oracle packages are tricky. Some are in the JRE. Some aren't.
        || className.startsWith("com.sun.jmx.")
        || className.startsWith("com.sun.jndi.")
        || className.startsWith("com.sun.media.")
        || className.startsWith("com.sun.management.")
        || className.startsWith("com.sun.beans.")
        || className.startsWith("com.sun.corba.")
        || className.startsWith("com.sun.awt.")
        || className.startsWith("com.sun.swing.")
        || className.startsWith("com.sun.rmi.")
        || className.startsWith("com.sun.xml.")
        || className.startsWith("com.sun.java.")
        || className.startsWith("com.sun.org.")
        || className.startsWith("com.sun.rowset.")
        || className.startsWith("com.oracle.net.")
        || className.startsWith("com.oracle.nio.")
        || className.startsWith("com.oracle.util.")) {
      return WHITELIST.contains(className);
    } else { // not a JRE class
      return true;
    }
  }
1301864
private static boolean isBundledInJre(String className) {
    if (className.startsWith("javax.accessibility.")
        || className.startsWith("javax.activation.")
        || className.startsWith("javax.activity.")
        || className.startsWith("javax.annotation.")
        || className.startsWith("javax.crypto.")
        || className.startsWith("javax.imageio.")
        || className.startsWith("javax.jws.")
        || className.startsWith("javax.lang.model.")
        || className.startsWith("javax.management.")
        || className.startsWith("javax.naming.")
        || className.startsWith("javax.net.")
        || className.startsWith("javax.print.")
        || className.startsWith("javax.rmi.")
        || className.startsWith("javax.script.")
        || className.startsWith("javax.security.")
        || className.startsWith("javax.sound.")
        || className.startsWith("javax.sql.")
        || className.startsWith("javax.swing.")
        || className.startsWith("javax.tools.")
        || className.startsWith("javax.transaction.")
        || className.startsWith("javax.xml.")) {
      return true;
    }
    return false;
  }
210719
public static boolean isObjClass(Class<?> type) {
        if (type.isPrimitive() || type.isEnum() || type.isArray()) {
            return false;
        }

        String block = BASIC_PACKAGE_PREFIX_LIST.stream().filter(prefix -> type.getName().startsWith(prefix)).findAny().orElse(null);
        if (block != null) {
            return false;
        }

        return !PRIMITIVE_CLASS_LIST.contains(type);
    }
44250
public static boolean isUnifiedELAvailable()
    {
        if (unifiedELAvailable == null)
        {
            try
            {
                // Check if the UEL classes are available.
                // If the JSP EL classes are loaded first, UEL will not work
                // properly, hence it will be disabled.
                unifiedELAvailable = (
                        Class.forName("javax.el.ValueReference") != null
                     && Class.forName("javax.el.ValueExpression")
                                .getMethod("getValueReference", ELContext.class) != null
                );
            }
            catch (Throwable t)
            {
                log.log(Level.FINE, "Error loading class (could be normal)", t);
                unifiedELAvailable = false;
            }

            //log.info("MyFaces Unified EL support " + (unifiedELAvailable ? "enabled" : "disabled"));
        }
        return unifiedELAvailable;
    }
110069
public static boolean isUnifiedELAvailable()
    {
        if (unifiedELAvailable == null)
        {
            try
            {
                // Check if the UEL classes are available.
                // If the JSP EL classes are loaded first, UEL will not work
                // properly, hence it will be disabled.
                unifiedELAvailable = (
                        Class.forName("javax.el.ValueReference") != null
                     && Class.forName("javax.el.ValueExpression")
                                .getMethod("getValueReference", ELContext.class) != null
                );
            }
            catch (Throwable t)
            {
                //log.log(Level.FINE, "Error loading class (could be normal)", t);
                unifiedELAvailable = false;
            }

            log.info("MyFaces Unified EL support " + (unifiedELAvailable ? "enabled" : "disabled"));
        }
        return unifiedELAvailable;
    }
1231346
private boolean isJarFile(URL resourceLocation) {

    String resourceLocationString = resourceLocation.toExternalForm();

    return resourceLocationString.startsWith("jar:file:") || resourceLocationString.contains(".jar!");
  }
956766
public static boolean isIgnorableBinName(String className) {
        return (className.startsWith("[", 0)
                || className.startsWith(JAVA_BIN, 0)
                || className.startsWith(JAVAX_BIN, 0)
                || className.startsWith(JDK_BIN, 0)
                || className.startsWith(SUN_BIN, 0)
                || className.startsWith(COM_SUN_BIN, 0)
                || className.startsWith(ORG_XML_SAX_BIN, 0)
                || className.startsWith(ORG_IETF_JGSS_BIN, 0)
                || className.startsWith(ORG_OMG_BIN, 0)
                || className.startsWith(ORG_W3C_BIN, 0)
                || className.startsWith(XTS_BIN, 0)
                || className.startsWith(ORG_MOCKITO_BIN, 0)
                || className.startsWith(ORG_JACOCO_AGENT_BIN, 0));
    }
19844
public boolean isEnabledForPath(String rootPath) {

        for (String path : m_paths) {
            if (CmsStringUtil.isPrefixPath(path, rootPath)) {
                return true;
            }
        }
        return false;
    }
576434
public static boolean check() {
        Class<?> objectType;
        Class<?>  type;
        Class<?>  constants;
        Class<?>  emptyVis;
        Class<?>  repository;
        try {
            objectType = Class.forName(ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE);
            type = Class.forName(ORG_APACHE_BCEL_GENERIC_TYPE);
            constants = Class.forName(ORG_APACHE_BCEL_CONSTANTS);
            emptyVis = Class.forName(ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR);
            repository = Class.forName(ORG_APACHE_BCEL_REPOSITORY);

        } catch (ClassNotFoundException e) {
            LOG.error("One or more required BCEL classes were missing."
                    + " Ensure that bcel.jar is placed at the same directory with spotbugs.jar");
            return false;
        }
        if (isFinal(objectType)) {
            error(ORG_APACHE_BCEL_GENERIC_OBJECT_TYPE);
            return false;
        }
        if (isFinal(type)) {
            error(ORG_APACHE_BCEL_GENERIC_TYPE);
            return false;
        }
        if (isFinal(constants)) {
            error(ORG_APACHE_BCEL_CONSTANTS);
            return false;
        }
        if (isFinal(emptyVis)) {
            error(ORG_APACHE_BCEL_CLASSFILE_EMPTY_VISITOR);
            return false;
        }
        if (isFinal(repository)) {
            error(ORG_APACHE_BCEL_REPOSITORY);
            return false;
        }
        return true;
    }
50180
function isCandidate(modulePath, options) {
        modulePath = modulePath || '';
        return modulePath.indexOf('/') >= 0 || (options && options.flapjack) || false;
    }