JavaSourceRootProperties () { if (mySourceRoot.getRootType() == JavaSourceRootType.SOURCE) { return mySourceRoot.getProperties(JavaSourceRootType.SOURCE); } if (mySourceRoot.getRootType() == JavaSourceRootType.TEST_SOURCE) { return mySourceRoot.getProperties(JavaSourceRootType.TEST_SOURCE); } return null; }