private static boolean isAnonymousType(IJavaElement javaElement) {
        try {
            return javaElement instanceof IType && ((IType) javaElement).isAnonymous();
        } catch (JavaModelException e) {
            FindbugsPlugin.getDefault().logException(e, "isAnonymousType() failed");
        }
        return false;
    }
private static boolean isAnonymousType ( IJavaElement javaElement ) { try { return javaElement instanceof IType && ( ( IType ) javaElement ) . isAnonymous ( ) ; } catch ( JavaModelException e ) { FindbugsPlugin . getDefault ( ) . logException ( e , "isAnonymousType() failed" ) ; } return false ; }
@param javaElement
@return true, if given element is anonymous inner class